/*
 * Copyright (c) 2010, Davide Brugali, All right reserved
 * 
 * Project MotionPlanning
 * 
 * Package motionplanning.cartspace.framework
 */
package star.crust.cartspace.component;


import java.util.ArrayList;



import star.crust.cartspace.framework.CrtBody;
import star.crust.cartspace.framework.CrtBodyGroup;
import star.crust.cartspace.framework.CrtRegion;

public class CartesianSpace {
	private ArrayList<CrtRegion> regions = null; 
	private ArrayList<CrtBodyGroup> artSystems = null;
	private ArrayList<CrtBodyGroup> obstacles = null;
	
	public CartesianSpace() {
		artSystems = new ArrayList<CrtBodyGroup>();
		obstacles = new ArrayList<CrtBodyGroup>();
	}
	public void loadModel(String fileName) {
		// ...
	}	
	

	
	/*
	 * ***********************************************************************
	 * 			            Interface CrtMeasuring
	 * 
	 * @see star.crust.cartspace.CrtMeasuring
	 * 
	 * ***********************************************************************
	 */
	public double getMinDistanceBetween(CrtBody b1, CrtBody b2) {
		// TODO Auto-generated method stub
		return 0;
	}		
	
	
    public String toString() {
    	String doc = "";
    	for(int i=0; i < artSystems.size(); i++)
    		doc += artSystems.get(i).toString() + "\n";
        return doc;
    }
}
